using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._DistributedGeodatabase
{
    /// <summary>
    /// <para>Unregister Replica</para>
    /// <para>Unregisters a replica from an enterprise geodatabase.</para>
    /// <para>从企业级地理数据库中取消注册复本。</para>
    /// </summary>    
    [DisplayName("Unregister Replica")]
    public class UnregisterReplica : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UnregisterReplica()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_geodatabase">
        /// <para>Input Geodatabase</para>
        /// <para>The enterprise geodatabase that contains the replica to unregister.</para>
        /// <para>包含要注销的复本的企业级地理数据库。</para>
        /// </param>
        /// <param name="_in_replica">
        /// <para>Replica ID or Name</para>
        /// <para>The name or id of the replica that will be unregistered. If providing the replica name, it must be fully qualified, for example, myuser.myreplica.</para>
        /// <para>将取消注册的复制副本的名称或 ID。如果提供副本名称，则必须完全限定，例如 myuser.myreplica。</para>
        /// </param>
        public UnregisterReplica(object _in_geodatabase, object _in_replica)
        {
            this._in_geodatabase = _in_geodatabase;
            this._in_replica = _in_replica;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Unregister Replica";

        public override string CallName => "management.UnregisterReplica";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_geodatabase, _in_replica, _updated_geodatabase];

        /// <summary>
        /// <para>Input Geodatabase</para>
        /// <para>The enterprise geodatabase that contains the replica to unregister.</para>
        /// <para>包含要注销的复本的企业级地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_geodatabase { get; set; }


        /// <summary>
        /// <para>Replica ID or Name</para>
        /// <para>The name or id of the replica that will be unregistered. If providing the replica name, it must be fully qualified, for example, myuser.myreplica.</para>
        /// <para>将取消注册的复制副本的名称或 ID。如果提供副本名称，则必须完全限定，例如 myuser.myreplica。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Replica ID or Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_replica { get; set; }


        /// <summary>
        /// <para>Updated Geodatabase</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_geodatabase { get; set; }


        public UnregisterReplica SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}